package com.yzd.learnjava.iniialization;

public class OverloadingVarArgs2 {
	
	static void f(float i, Character... args) {
		System.out.println("first");
	}
	
//	static void f(Character... args) {
//		System.out.println("second");
//	}
	
//	static void f(char c, char c2) {
//		System.out.println("second");
//	}
	
	static void f(char c , Character... args) {
		System.out.println("second");
	}
	public static void main(String[] args) {
		f(1,'a');
		f('a','b');//The method f(float, Character[]) is ambiguous for the type OverloadingVarArgs2
//		f((float)'a','b');
//		f(new Character[] {'a','b'});
	}

}
